package com.jkkc.lib.base.extend

import com.blankj.utilcode.util.ThreadUtils


/**
 * Author:LiXian
 * <p>
 * Desc:通用扩展
 * Version:1.0
 * date 2023/2/28 16:48
 */

/**
 * 切换为主线程
 */
fun runOnUiThread(action: () -> Unit) = ThreadUtils.runOnUiThread(action)

/**
 * 延迟delayMillis毫秒，切换为主线程
 */
fun runOnUiThreadDelayed(action: () -> Unit, delayMillis:Long) = ThreadUtils.runOnUiThreadDelayed(action, delayMillis)

